<?php
// module directory
define('MODULE_PATH', realpath(dirname(__FILE__) . '/..'));
// application directory
define('APPLICATION_PATH', realpath(MODULE_PATH . '/../../'));

set_include_path(
    realpath(APPLICATION_PATH . '/../library') .
    PATH_SEPARATOR .
    get_include_path()
);

require_once 'Zend/Application.php';

$app = new Zend_Application('development', array(
        'bootstrap' => array(
            'path' => MODULE_PATH . '/Bootstrap.php',
            'class' => 'Admin_Bootstrap',
        ),
        'autoloaderNamespaces' => array('Doctrine'),
    ));
$app->bootstrap('DoctrineCLI');

$cli = $app->getBootstrap()
           ->getResource('DoctrineCLI');

$cli->run($_SERVER['argv']);
